package edu.neu.cs6515.xml;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import edu.neu.cs6515.xml.w12.XMLTurn;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * Player object for XML Data :
 * {@code
 * <player interval=Nat> Board Score Tile ...  </player>
 * }
 */
@XmlRootElement(name="player")
@AllArgsConstructor
@NoArgsConstructor
public class Player extends XMLTurn{
    
    private int interval;
    
    @XmlAttribute
    public int getInterval() {
        return interval;
    }
    
    public void setInterval(final int interval) {  
        this.interval = interval;
    }

    public Player(final Board board, final Score score, final List<Tile> tile, final int interval) {
        super(board, score, tile);
        this.interval = interval;
    }
    
}
